<%--
<!------------------------------------------------------------------------------
 - Copyright 2005 CORE Solutions Limited
 - All rights reserved.
 - PROPRIETARY AND CONFIDENTIAL INFORMATION.
 - Use is subject to license terms.
 -
 - FUNCTION ID      :   TASK
 - AUTHOR           :   Ric Yik 
 - DATE CREATE      :   2005/12/29
 - DESCRIPTION      :   a HEADER TAB JSP file for the function, TASK
 -                  :   
 -                  :   
 -                  :   
 -
 - MODIFICATION HISTORY:
 - DATE         AUTHOR          VERSION NO.         COMMENT
 - -----------  --------------  ------------------  -------------------
 - 2005/12/29   Ric Yik         1.0                 source is generated.
 -
 -
 -
------------------------------------------------------------------------------->

--%>
<%@ include file="/jsp/com/erp/app/common/jsp/directives_include.jsp"%>

<%@ page import="com.erp.app.setup.taskMaster.vo.TaskHdrVo"%>
<%@ page import="com.erp.app.setup.taskMaster.web.TaskMaintenanceAction"%>
<%@ page import="com.erp.app.setup.taskMaster.web.TaskMaintenanceForm"%>

<%@ include file="/jsp/com/erp/app/common/jsp/html_include.jsp"%>

<jsp:useBean id="taskMaintenanceForm" scope="session" type="com.erp.app.setup.taskMaster.web.TaskMaintenanceForm" />

<!-- MUST use the following to mark as mandatory field inputs-->
<!--<bean:message key="label.general.mandatory.field"/>-->

<%
formReadOnly = false;
TableSchema ts = taskMaintenanceForm.getTs();
%>

<table class="table_short_header">

	<tr>
		<td class="col_label">
			<html:text useExtensions="true" name="taskMaintenanceForm" uiType="label" property="docType"/>
		</td>
		<td class="col_value" nowrap>
			<logic:equal name="taskMaintenanceForm" property="pageMode" value="<%=taskMaintenanceForm.PAGE_MODE_CREATE%>">
				<html:text property="docType" styleClass="textbox1" readonly="<%=formReadOnly%>" maxlength="<%=colSize%>" size="<%=displaySize%>" value="<%=CommonUtil.nullToString(taskMaintenanceForm.getDocType())%>"/>
			</logic:equal>
			<logic:notEqual name="taskMaintenanceForm" property="pageMode" value="<%=taskMaintenanceForm.PAGE_MODE_CREATE%>">
				<bean:write name="taskMaintenanceForm" property="docType" filter="true"/>
			</logic:notEqual>
		</td>
		</tr>
		<tr>
		<td class="col_label">
			<html:text useExtensions="true" name="taskMaintenanceForm" uiType="label" property="docDesc"/>
		</td>
		<td class="col_value" nowrap>
			<html:text property="docDesc" styleClass="textbox1" readonly="<%=formReadOnly%>" maxlength="<%=colSize%>" size="<%=displaySize%>" value="<%=CommonUtil.nullToString(taskMaintenanceForm.getDocDesc())%>"/>
		</td>
		</tr>
		<tr>
		<td class="col_label">
			<html:text useExtensions="true" name="taskMaintenanceForm" uiType="label" property="status"/>
		</td>
		<td class="col_value" nowrap>
			<select name="status" <%=formReadOnly ? "disabled=\"true\"" : ""%> class="selectBox1">
				<%where = "TYPE='" + ProjectConstants.CONSTANT_TYPE_ACT_INACT + "'";%>
				<chtml:options table="T_SYS_CONSTANTS"
				valuecolumn="CONSTANT_CODE"
				textcolumn="CONSTANT_NAME"
				where= "<%=where%>"
				order="ORDER_SEQ"
				selected="<%=taskMaintenanceForm.getStatus()%>" />
			</select>
		</td>
	</tr>
	<tr>
		<td class="col_label">
			<html:text useExtensions="true" name="taskMaintenanceForm" uiType="label" property="createUser"/>
		</td>
		<td class="col_value" nowrap>
			<html:text useExtensions="true" uiType="combobox" visibility="displayOnly" showCode="false" name="taskMaintenanceForm" property="createUser"/>

		</td>
		</tr>
		<tr>
		<td class="col_label">
			<html:text useExtensions="true" name="taskMaintenanceForm" uiType="label" property="createDate"/> <%=ProjectConstants.WEB_DATE_FORMAT_LABEL%>
		</td>
		<td class="col_value" nowrap>
			<%=CommonUtil.dateToString(CommonUtil.stringToTimestamp(taskMaintenanceForm.getCreateDate()), ProjectConstants.OUTPUT_DATETIME_FORMAT)%>
		</td>
		</tr>
		<tr>
		<td class="col_label">
			<html:text useExtensions="true" name="taskMaintenanceForm" uiType="label" property="updateUser"/>
		</td>
		<td class="col_value" nowrap>
			<html:text useExtensions="true" uiType="combobox" visibility="displayOnly" showCode="false" name="taskMaintenanceForm" property="updateUser"/>
		</td>
	</tr>
	<tr>
		<td class="col_label">
			<html:text useExtensions="true" name="taskMaintenanceForm" uiType="label" property="updateDate"/> <%=ProjectConstants.WEB_DATE_FORMAT_LABEL%>
		</td>
		<td class="col_value" nowrap>
			<%=CommonUtil.dateToString(CommonUtil.stringToTimestamp(taskMaintenanceForm.getUpdateDate()), ProjectConstants.OUTPUT_DATETIME_FORMAT)%>
		</td>
	</tr>
</table>

